package com.hrm.mapper;

import com.hrm.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface DeptMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Dept record);

    int insertSelective(Dept record);

    Dept selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Dept record);

    int updateByPrimaryKey(Dept record);

    /**
     * 根据部门名称动态查询
     * @param name
     * @return
     */
    List<Dept> selectLikeName(String name);

    @Select("select * from dept_inf")
    List<Dept> getAllDept();
}